﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.effects {
    import Classes.*;

    public class ZsEffect extends AnimationEffect {

        private const OFFSET_PERCENT_Y:Number = 0.19;

        public function ZsEffect(_arg1:MapResource, _arg2:String){
            super(_arg1, _arg2, true, true);
        }
        override public function reattach():void{
            var _local1:Number;
            var _local2:Number;
            var _local3:Number;
            var _local4:Number;
            super.reattach();
            if (m_effectImage){
                _local1 = (m_mapResource.content.width >> 1);
                _local2 = (m_mapResource.content.height * this.OFFSET_PERCENT_Y);
                _local3 = -((m_effectImage.width >> 1));
                _local4 = -((m_effectImage.height >> 1));
                m_effectImage.x = ((_local1 + _local3) + m_itemImage.offsetX);
                m_effectImage.y = ((_local2 + _local4) + m_itemImage.offsetY);
            };
        }

    }
}//package Classes.effects 
